﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sage.DownloadLite.Models
{
    /// <summary>
    /// 批量下载进度信息
    /// </summary>
    public class BatchDownloadProgress
    {
        /// <summary>
        /// 已完成任务数
        /// </summary>
        public int CompletedTasks { get; set; }
        /// <summary>
        /// 总任务数
        /// </summary>
        public int TotalTasks { get; set; }
        /// <summary>
        /// 总体百分比
        /// </summary>
        public double Percentage { get; set; }
        /// <summary>
        /// 当前正在处理的任务
        /// </summary>
        public TaskInfo? CurrentTask { get; set; }
        /// <summary>
        /// 成功任务数
        /// </summary>
        public int SuccessfulTasks { get; set; }
        /// <summary>
        /// 失败任务数
        /// </summary>
        public int FailedTasks { get; set; }
    }
}
